package com.liaozibo.demo.seckill.web.controller;

import com.liaozibo.demo.seckill.web.aop.MyRateLimiter;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/rateLimiter")
public class RateLimiterTestController {

    @GetMapping
    @MyRateLimiter
    public String test() {
        return "ok";
    }
}
